﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Orchard.ContentManagement;

namespace Orchard.Commerce.Models
{
    public class Product : ContentPart<ProductRecord>
    {
        public int Id
        {
            get { return Record.Id; }
            set { Record.Id = value; }
        }

        [Required]
        public string Description
        {
            get { return Record.Description; }
            set { Record.Description = value; }
        }

        [Required]
        public string SKU
        {
            get { return Record.SKU; }
            set { Record.SKU = value; }
        }

        [Required]
        public short DisplayOrder
        {

            get { return Record.DisplayOrder; }
            set { Record.DisplayOrder = value; }
        }

        public string ImageName
        {
            get { return Record.ImageName; }
            set { Record.ImageName = value; }
        }
    }
}